package com.abbas.smartCity.okhttp

import okhttp3.Call
import okhttp3.Response
import java.io.IOException

class KOkCallbackDsl<T> {

    var success: ((T) -> Unit)? = null
    var failure: ((msg: String) -> Unit)? = null

    fun success(block: (T) -> Unit){
        success = block
    }

    fun failure(block: (msg: String) -> Unit){
        failure = block
    }

}